package com.sys.basics.dao;

import org.apache.ibatis.annotations.Mapper;
import com.sys.basics.entity.SysUserRoleLk;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: ares
 * @date: 2021-10-08
 * @description: 用户角色关联表 Mapper 接口
 */
@Mapper
public interface SysUserRoleLkDao extends BaseMapper<SysUserRoleLk> {

    int batchCreate(@Param("userId") Long userId, @Param("roleIds") List<Long> roleIds);

    int batchRemove(@Param("userId") Long userId, @Param("roleIds") List<Long> roleIds);
}
